package Thread;

import java.util.Random;

/**
 * @Author czl
 * @Date 2024-03-18
 */
public class MainTest {
    public static void main(String[] args) {
        Thread1 thread1 = new Thread1();
        thread1.start();

        Runnable runnable = new Runnable();
        Thread thread = new Thread(runnable);
        thread.start();

        Random random = new Random();
        int randomNumber = random.nextInt(256); // 生成0到255的随机数
        System.out.println("随机数是: " + randomNumber + "是绿");
    }
}
